#####
# Read Me for Replication Materials for
# "How partisan affect shapes citizens' perception of the political world"
# Electoral Studies 60 (2019) 102045
# Dalston G. Ward and Margit Tavits
#####

The replication materials contain 8 files. 

--For Analysis I--

1. ip_dat.csv (this contains the respondent-party dyad level CSES data. We use it to replicate Analysis 1.)
2. Codebook_respondent_party.pdf (Codebook for ip_dat.csv)
3. Replication_Analysis_I.R (R code to replicate all analyses and figures for Analysis I and SI.1)

--For Analysis II--

4. ind_dat.csv (contains the respondent level CSES data. We use it to replicate Analysis II & SI.2.)
5. ind_dat_extend.csv (contains all of the variables in ind_dat.csv plus additional variables that we used to create the measures in Analysis II & SI.2)
6. Codebook_respondent.pdf (Codebook for ind_dat.csv and ind_dat_extend.csv)
7. Replication_Analysis_II.R (R code to replicate all analyses and figures for Analysis II and SI.2)
8. Replication_Analysis_II_Variable_Creation (R code showing how we created measures used in Analysis II & SI.2. To be used with ind_dat_extend.csv)

Please contact Dalston Ward at dalston.ward@gess.ethz.ch if you have any questions about these materials. 